#ifndef __paraTable_H
#define __paraTable_H


#ifdef __cplusplus
extern "C" {
#endif 

#include "gd32e10x.h"

typedef struct
{
	
	uint8_t valid;
	
	//为了节省空间，只留出使用到的几个变量
	uint16_t voltage;		//低电压
	
	
	
}ParaTable_typedef;


uint32_t L610WriteParaTable(uint8_t * pDa, uint16_t len);
uint32_t ReadParaTable2Uart(uint8_t sel);
uint32_t PCReadParaTable(void);
uint32_t L610ReadParaTable(void);

void initParaTable(void);
uint32_t ReadParaTable(void);
uint16_t getParaItemVolt(void);
uint8_t getParaValid(void);
void fillParaTableItem(uint8_t * paraData);
	



#ifdef __cplusplus
}
#endif


#endif



